$(function(){
	$("#tooltip").tooltip();
	$(".item .radio").click(function(e){
		var now = $(this).parents('.item').offset().top;
		var next = $(this).parents('.item').next().next().offset().top;
		//alert($(this).next().attr("style"));
		var cha = next - now;
		var pastscrolltop = $(window).scrollTop(),scrolltop,H,h;
		var flow = setInterval(function(){
			H = $(document).height()-$(window).height();
			h = $(window).scrollTop();
			//alert(H+"--"+h);
			if(H == h){
				clearInterval(flow);
			}
			scrolltop = $(window).scrollTop();
			if(scrolltop >= (pastscrolltop+cha)){
				clearInterval(flow);
			}
			$(window).scrollTop(scrolltop+5);
		},1);
	});
});